package net.pethub.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

/**
 *  Controller class for various high level pethub handlers.
 */
@Controller
public class PethubController {

    /**
     * Handler for welcome view.
     * @return view name.
     */
    @RequestMapping("/")
    public String welcomeHandler(){
       return "welcome";
    }

    @RequestMapping(method= RequestMethod.GET,value="/login")
    public String login(){
       return "login";
    }
}
